@{
    ViewData["Title"] = "仓库选择";
    Layout = null;
}

<link rel="stylesheet" href="~/layui/css/layui.css">

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 数据表格 -->
            <table id="warehouseTable" lay-filter="warehouseTable"></table>
        </div>
    </div>
</div>

<script src="~/layui/layui.js"></script>

<script>
    layui.use(['table', 'form', 'layer'], function(){
        var table = layui.table;
        var form = layui.form;
        var layer = layui.layer;
        var $ = layui.$;
        
        // 初始化表格
        table.render({
            elem: '#warehouseTable',
            url: '/SaleSendOrder/GetWarehouses',
            cols: [[
                {type: 'radio', width: 50},
                {field: 'id', title: '仓库编码', width: 120},
                {field: 'warehouseName', title: '仓库名称', width: 200},
                {field: 'address', title: '地址', width: 250},
                {field: 'manager', title: '负责人', width: 100}
            ]],
            height: 'full-80'
        });
    });
</script> 